import { request } from '@/utils/service'
import type * as Login from '@/api/login/types/login'

export function sendSMS(data: Login.SendSMSRequestData) {
  return request<Login.SendSMSResponse>({
    url: '/sendSms',
    method: 'post',
    data: data,
  })
}
export function loginForm(data: Login.LoginFormRequestData) {
  return request<Login.LoginFormResponse>({
    url: '/login',
    method: 'post',
    data: data,
  })
}
export function bingWx(data: Login.BindWXRequestData) {
  return request<Login.BindWXResponse>({
    url: '/WeChatBindAccount',
    method: 'post',
    data: data,
  })
}
